package com.example.easyrulesimple.pdf;

import java.io.FileOutputStream;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Map;

public class Pdfdest {
    public static void main(String[] args) throws Exception {
        String outputFile = "d:/test1.pdf";
        Map<String, Object> map = new HashMap<>();
        map.put("XXX", "测试");
        //生成工具，下面有代码
        String htmlStr = HtmlGenerator.generate("test.ftl", map);
        //生成工具，下面有代码
        OutputStream out = new FileOutputStream(outputFile);
        PdfDocumentGenerator.generatePlus(htmlStr,out);
    }
}
